cmake_minimum_required(VERSION 3.5.1)
project(rl_c1_driver)

set(CMAKE_CXX_STANDARD 14)

## Compile as C++11, supported in ROS Kinetic and newer
add_compile_options(-std=c++11)

find_package(catkin REQUIRED COMPONENTS
        roscpp
        message_generation
        std_msgs
        geometry_msgs
        tf
        wmr_msgs
        insprobe_msgs
        )
generate_messages(
        DEPENDENCIES
        geometry_msgs
        std_msgs
)

#
catkin_package(
        LIBRARIES ${PROJECT_NAME}
        CATKIN_DEPENDS roscpp std_msgs message_runtime)

include_directories(
        ${catkin_INCLUDE_DIRS}
        )

add_subdirectory(${PROJECT_SOURCE_DIR}/tcp_connect)
add_subdirectory(${PROJECT_SOURCE_DIR}/chassis)

#set(SRC chassis/chassis_driver.cpp tcp_connect/serialport.cpp tcp_connect/ip_tcp_connect.cpp)
#
#add_executable(${PROJECT_NAME}
#        ${SRC}
#        include)
#
#add_dependencies(${PROJECT_NAME} ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
#
#target_link_libraries(${PROJECT_NAME}
#        ${catkin_LIBRARIES}
#        )